﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MyManageViewControl
{
    public partial class TopicManageView : ManageView
    {
        public event EventHandler TopicIdChange;

        public string TopicId
        {
            get { return tbxTopicId.Text; }
            set { tbxTopicId.Text = value; }
        }

        public string TopicName
        {
            get { return tbxTopicName.Text; }
            set { tbxTopicName.Text = value; }
        }

        public string TopicDescription
        {
            get { return tbxTopicDescription.Text; }
            set { tbxTopicDescription.Text = value; }
        }


        public TopicManageView()
        {
            InitializeComponent();
        }

        private void TopicManageView_Load(object sender, EventArgs e)
        {

        }

        private void tbxTopicId_DoubleClick(object sender, EventArgs e)
        {
            tbxTopicName.Text = "";
            tbxTopicDescription.Text = "";

            if (TopicIdChange != null)
            {
                TopicIdChange(sender, e);
            }
        }
    }
}
